package com.driver.system.controller.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author 老顾
 * @apiNote
 * @since 2024/4/2
 */
@Data
public class UpdateDriverFineForm {

    private Integer fineId;

    private BigDecimal amount;

    @NotNull
    private Long driverId;

    @NotNull
    private Long orderId;

    @Range(min = 1, max = 3, message = "status范围不对")
    @Schema(description = "状态")
    private Byte status;

    @NotEmpty
    private String remark;
}
